<!DocType html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
 <head>
  <meta content="text/html;charset=utf-8"/>
 </head>
 <script type="text/javascript" th:src="@{/js/post.js}">
 
 </script>
 
 <body>
 <i th:text="${session.loginname}"></i>
  <form action="http://localhost/8080/getPost/insertPost">
  <select th:each="plate:${plateList}" >
   <option>选择您要发帖的板块</option>
   <option th:text="${plate.pname}" th:value="${plate.pid}"></option>
  </select>
 帖子名称 :<input type="text" name="ptname" id="ptname1" title="帖子的名字"/>
<input type="hidden" name="uname" id="uname1" th:value="${session.loginname}"/>
<input type="hidden" name="ptaddress" id="ptaddress1" />
<input type="hidden" name="pid" id="pid1"/>
<input type="hidden" name="ptctime" id="ptctime1"/>
<input type="hidden" name="ptlatime" id="ptlatime1"/>

<input type="hidden" name="wuid" id="wuid1"/>
<input type="text" name="subject" id="subject1"/>
<input type="hidden" name="posttime" id="posttime1"/>
<input type="hidden" name="uname" id="uname1"/>
<input type="text" name="ct" id="ct1"/>
<input type="hidden" name="post" value="3"/>
<button onclick="return as(this.form)">提交</button>  

  </form>

 </body>
</html>